<template>
  <div id="bottom">
    <p id="top"> <span @click="prev()">&lt;</span> <span id="top-center">账号管理</span></p>
    <hr>
    
    <ul>
      <li>
        管家id
       <span>{{this.arr[0].id.userid}}</span>
      </li>
      <li>
        手机号码
        <span>{{this.arr[0].id.userphone}}</span>
      </li>
      <li>
        邮箱地址
        <span>去绑定邮箱</span>
      </li>
      <li id="special">
        设置密码
        <span>></span>
      </li>
      <li>
        隐私协议
      </li>
      <li>
        用户协议
      </li>
    </ul>
    <button @click="fun()">退出登录</button>
  </div>
</template>

<script>
import  {getlink}from 'a/getlink.js'
// import  from ''
export default {
  data(){
    return{
      arr:[]
    }
  },
  methods:{
    prev(){
       this.$router.go(-1)
    },
    aol(){
         getlink("/user/user").then((ok)=>{
           console.log(ok.data.books)
           this.arr=ok.data.books
            console.log(this.arr[0].id.userid)
    })
 console.log(this.arr)
    },
    fun(){
      console.log('退出id')
    }

  },
    created(){
    this.aol()
  },
  
};
</script>
















<style scoped>
#bottom{
  font-size: 0.3rem;
  width: 100%;
  height: 30rem;
  /* background-color: pink; */
}
#bottom ul{
  margin-top: 1rem;
  height: 4rem;
}
#bottom #top{
  height: 0.5rem;
  line-height: 0.5rem;
  color: orange;
  font-size: 0.5rem;
  box-sizing: border-box;
  display: flex;
  justify-content: space-between;
 /* padding: 0rem 0.5rem 0rem 0.5rem; */
}
#bottom #top #top-center{
  text-align: center;
  line-height: 0.5rem;
  display: block;
  margin: auto;
  color: black;
  font-size: 0.3rem;
}
#bottom ul li{
  height: 0.5rem;
  /* background-color: pink; */
  line-height: 0.5rem;
  box-sizing: border-box;
  /* padding: 0rem 0.5rem 0rem 0.5rem; */
  border-top: 0.01rem solid gray;
  border-bottom: 0.01rem solid gray;
}
#bottom ul li span{
  float: right;
}
button{
  width: 80%;
  height: 0.5rem;
  background-color: red;
  color: white;
  border-radius: 0.2rem;  
  display: block;
  margin: auto;
}



</style>
